import {
    getRole_RouteAll,
    getRole_RouteArr,
    updataRole_RouteById,
    deleteRole_RouteById,
    deleteRole_RouteMoreById,
    SearchRole_RouteKey,
    addRole_Route,
    optionsList,
  } from "../../api/role_route.js";
  import { verifyToken } from "../../utils/TokenCheck.js";
  
  export default function role_routeRouter(router) {
    // 获取全部路由信息
    router.get("/getRole_RouteAll", verifyToken, getRole_RouteAll);
    // 分页查询路由信息
    router.post("/getRole_RoutePage", verifyToken, getRole_RouteArr);
    // 修改指定id路由信息
    router.post("/updataRole_RouteById", verifyToken, updataRole_RouteById);
    // 删除指定id路由信息
    router.delete("/deleteRole_RouteById/:id", verifyToken, deleteRole_RouteById);
    // 批量删除指定id路由信息
    router.post("/deleteRole_RouteMoreById", verifyToken, deleteRole_RouteMoreById);
    // 根据key-value分页查询指定路由信息
    router.post("/SearchRole_RouteKey", verifyToken, SearchRole_RouteKey);
    // 添加路由信息
    router.post("/addRole_Route", verifyToken, addRole_Route);
    // 获取全部可选项
    router.get("/optionsList", verifyToken, optionsList);
  }
  